/**获取value对应的name */
export const filterLabelName = (
  options: {
    value: number;
    label: string;
  }[],
  val: number
) => {
  const arr = options.find(item => item.value === val);
  return arr ? arr.label : '';
};
/**学习状态 */
export const studyStateOption = [
  {
    value: -1,
    label: '全部',
  },
  {
    value: 0,
    label: '学习中',
  },
  {
    value: 1,
    label: '未学习',
  },
  {
    value: 2,
    label: '学习失败',
  },
  {
    value: 3,
    label: '已学习',
  },
];
/**扩展类型 */
export const extendTypeOption = [
  {
    value: -1,
    label: '全部',
  },
  {
    value: 0,
    label: '同义',
  },
  {
    value: 1,
    label: '排除',
  },
];
